/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.proyectos.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Jose
 */
@Entity
@Table(name = "directores")
@NamedQueries({
@NamedQuery(name = "Directores.findAll", query = "SELECT d FROM Directores d"),
@NamedQuery(name = "Directores.findByNcodigo", query = "SELECT d FROM Directores d WHERE d.ncodigo = :ncodigo"),
@NamedQuery(name = "Directores.findByName", query = "SELECT d FROM Directores d WHERE upper(d.cnombre) like :cnombre")})
public class Directores implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column
    private BigDecimal ncodigo;
   
    @Column
    private String cnombre;
   
    @Column
    private String capellidos;
    
    @Column
    private String ctelefono;
  
    @Column
    private String cdespacho;
  
    @Column
    private String cmail;

    public Directores() {
    }

//    public Directores(BigDecimal ncodigo) {
//        this.ncodigo = ncodigo;
//    }

    public BigDecimal getNcodigo() {
        return ncodigo;
    }

    public void setNcodigo(BigDecimal ncodigo) {
        this.ncodigo = ncodigo;
    }

    public String getCnombre() {
        return cnombre;
    }

    public void setCnombre(String cnombre) {
        this.cnombre = cnombre;
    }
    
    public String getCapellidos() {
        return capellidos;
    }

    public void setCapellidos(String capellidos) {
        this.capellidos = capellidos;
    }
    

    public String getCtelefono() {
        return ctelefono;
    }

    public void setCtelefono(String ctelefono) {
        this.ctelefono = ctelefono;
    }

    public String getCdespacho() {
        return cdespacho;
    }

    public void setCdespacho(String cdespacho) {
        this.cdespacho = cdespacho;
    }

    public String getCmail() {
        return cmail;
    }

    public void setCmail(String cmail) {
        this.cmail = cmail;
    }
  
    
}
